class User < ActiveRecord::Base
  validates_presence_of :login, :password, :name, :email
  has_many :stories
  has_many :votes
  has_many :comments
  has_many :stories_voted_on, 
    :through => :votes,
    :source => :story
  has_many :stories_commented_on, 
    :through => :comments,
    :source => :story
end
